/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.q3and4.dependencyinversionprin.model.obey;

/**
 *
 * @author user
 */
public class BankAccount implements TransferDInterface ,TransferSInterface {

    
    public double balance;
    public String accountNumber;
    
    public String getAccountNumber() {
        return accountNumber;
    }

    public void setAccountNumber(String accountNumber) {
        this.accountNumber = accountNumber;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }
    @Override
    public void addFound(double untits) {
       balance += untits;
    }

    @Override
    public void removeFounds(double untits) {
        balance -= untits;
    } 
}
